Optimal. Leaf size=256 \[ \frac {(b g-a h) (a+b x)^{m+1} (c+d x)^n (e+f x)^p \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{-p} F_1\left (m+1;-n,-p;m+2;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+1)}+\frac {h (a+b x)^{m+2} (c+d x)^n (e+f x)^p \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{-p} F_1\left (m+2;-n,-p;m+3;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21, antiderivative size = 256, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {159, 140, 139, 138} \[ \frac {(b g-a h) (a+b x)^{m+1} (c+d x)^n (e+f x)^p \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{-p} F_1\left (m+1;-n,-p;m+2;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+1)}+\frac {h (a+b x)^{m+2} (c+d x)^n (e+f x)^p \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{-p} F_1\left (m+2;-n,-p;m+3;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (m+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 138
Rule 139
Rule 140
Rule 159
Rubi steps
\begin {align*} \int (a+b x)^m (c+d x)^n (e+f x)^p (g+h x) \, dx &=\frac {h \int (a+b x)^{1+m} (c+d x)^n (e+f x)^p \, dx}{b}+\frac {(b g-a h) \int (a+b x)^m (c+d x)^n (e+f x)^p \, dx}{b}\\ &=\frac {\left (h (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n}\right ) \int (a+b x)^{1+m} \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n (e+f x)^p \, dx}{b}+\frac {\left ((b g-a h) (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n}\right ) \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n (e+f x)^p \, dx}{b}\\ &=\frac {\left (h (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^p \left (\frac {b (e+f x)}{b e-a f}\right )^{-p}\right ) \int (a+b x)^{1+m} \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n \left (\frac {b e}{b e-a f}+\frac {b f x}{b e-a f}\right )^p \, dx}{b}+\frac {\left ((b g-a h) (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^p \left (\frac {b (e+f x)}{b e-a f}\right )^{-p}\right ) \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n \left (\frac {b e}{b e-a f}+\frac {b f x}{b e-a f}\right )^p \, dx}{b}\\ &=\frac {(b g-a h) (a+b x)^{1+m} (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^p \left (\frac {b (e+f x)}{b e-a f}\right )^{-p} F_1\left (1+m;-n,-p;2+m;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (1+m)}+\frac {h (a+b x)^{2+m} (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^p \left (\frac {b (e+f x)}{b e-a f}\right )^{-p} F_1\left (2+m;-n,-p;3+m;-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b^2 (2+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.83, size = 0, normalized size = 0.00 \[ \int (a+b x)^m (c+d x)^n (e+f x)^p (g+h x) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 2.27, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (h x + g\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{p}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (h x + g\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{p}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.26, size = 0, normalized size = 0.00 \[ \int \left (h x +g \right ) \left (b x +a \right )^{m} \left (d x +c \right )^{n} \left (f x +e \right )^{p}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (h x + g\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{p}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int {\left (e+f\,x\right )}^p\,\left (g+h\,x\right )\,{\left (a+b\,x\right )}^m\,{\left (c+d\,x\right )}^n \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________